package com.test;

/**
 * <p></p>
 *
 * @author GaoShuangWen
 */
public class EmployeeService {
    private EmployeeDao employeeDao;

    public EmployeeService() {
       // this.employeeDao = employeeDao;
    }

    /**
     * 获取所有员工的数量.
     *
     * @return
     */
    public int getTotalEmployee() {
        EmployeeDao employeeDao2 = new EmployeeDao();
        return employeeDao2.getTotal();
    }
    public void createEmployee(Employee employee)
    {
        EmployeeDao employeeDao2 = new EmployeeDao();
        employeeDao2.addEmployee(employee);
    }
}
